#include "DebugWriter.h"

void DebugWriter::open() {}

void DebugWriter::writeToFile(string s) {
  ofstream myfile;
  myfile.open ("debug.txt", ios::out | ios::app);
  myfile << s << endl;
  myfile.close();
}

void DebugWriter::writeToFile(double d) {
  ofstream myfile;
  myfile.open ("debug.txt", ios::out | ios::app);
  myfile << d << endl;
  myfile.close();
}

void DebugWriter::writeToFile(float f) {
  ofstream myfile;
  myfile.open ("debug.txt", ios::out | ios::app);
  myfile << f << endl;
  myfile.close();
}

void DebugWriter::writeToFile(int i) {
  ofstream myfile;
  myfile.open ("debug.txt", ios::out | ios::app);
  myfile << i << endl;
  myfile.close();
}

void DebugWriter::clearFile() {
  ofstream myfile;
  myfile.open ("debug.txt", ios::out);
  myfile << "";
  myfile.close();
}

void DebugWriter::close() {}